package com.pzh.guli.service.edu.mapper;

import com.pzh.guli.service.edu.pojo.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 课程视频 Mapper 接口
 * </p>
 *
 * @author xzh
 * @since 2022-05-11
 */

public interface VideoMapper extends BaseMapper<Video> {
    @Select("SELECT video_source_id FROM edu_video WHERE id = #{id}")
    String selectSourceIdByVideoId(@Param("id") String id);
}
